package com.flower.enjoyment.flower.service;

import com.flower.enjoyment.flower.entity.FlowerCardOrder;
import com.flower.enjoyment.flower.entityDo.FlowerCardDo;

import java.util.List;

public interface FlowersCardOrderService {

    /**
     * 花享卡下单
     * @param flowerCardOrder
     * @return
     */
    int insertCardOrder(FlowerCardOrder flowerCardOrder,String payId);

    /**
     * 根据ID获取订单详情
     * @param id
     * @return
     */
    FlowerCardOrder selectCardOrderInfo(String id);

    /**
     * 根据订单号获取订单信息
     * @param no
     * @return
     */
    FlowerCardOrder selectCardOrderByNo(String no);

    /**
     * 修改花享卡订单信息
     * @param flowerCardOrder
     * @return
     */
    int updateCardOrder(FlowerCardOrder flowerCardOrder);
    /**
     * 将订单置为过期
     * @return
     */
    int updateExpireCardOrder();

    List<FlowerCardDo> selectByUserId(String userId);

}
